using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class OutReqConfiguration : EntityTypeConfiguration<OutReq>
    {
        public OutReqConfiguration()
        {
            Property(g => g.OutReqID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.Courier).IsOptional();
            Property(g => g.ExternalNumber).IsOptional();
            Property(g => g.GroupName).IsOptional();
            Property(g => g.Number).IsOptional();
            Property(g => g.OutState).IsOptional();
            Property(g => g.ShippingDate).IsOptional();
            Property(g => g.CustomerOrderID).IsRequired();
            Property(g => g.OutLocationID).IsRequired();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.OperatorID).IsRequired();
        }
    }
}